package model;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class ReadIntegerFromFile {
	public static void main(String[] args) {
		File f = new File("b.txt");
		
		Scanner scanner;
		
		try {
			scanner = new Scanner(f);
			
			int i = 1;
			while(scanner.hasNext()) {
				int n = scanner.nextInt();
				System.out.println("Element " + i + ": " + n);
				i++;
			}
		}
		catch(FileNotFoundException e) {
			System.out.println("Error: " + e);
		}
	}

}
